<%@page contentType="text/html;charset=UTF-8"%>

		<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" style="width:87%; margin-left:13.5%;">
          <h2 class="sub-header" style="border-bottom:#FFFFFF"><i class="fa fa-cubes"> Pod 列表</i></h2>
          <div class="table-responsive">
			<table class="table table-striped table-hover">
				<thead>
				<tr>
					<th>#序号</th>
					<th>Name</th>
					<th>Labels</th>
					<th>Nodes</th>
					<th>Namespaces</th>			
					<th>HostIp</th>
					<th>PodIp</th>
					<th>Status</th>
					<th>StartTime</th>
				</tr>
				</thead>
				<tbody>
				<c:forEach items="${pods.items}" var="pod" varStatus="podStatus">
					<tr>
						<td>${podStatus.index + 1}</td>
						<td><span class="glyphicon glyphicon-sort-by-attributes">${pod.metadata.name}</span></td>
						<td>${pod.metadata.labels}</td>
						<td>${pod.spec.nodeName}&nbsp;</td>
						<td>${pod.metadata.namespace}&nbsp;</td>		
						<td>${pod.status.hostIP}&nbsp;</td>
						<td>${pod.status.podIP}&nbsp;</td>
						<c:choose>
							<c:when test="${pod.status.phase=='Running'}">
								<td><span class="label label-info">${pod.status.phase}&nbsp;</span></td>
							</c:when>
							<c:otherwise>
								<td><span class="label label-info">${pod.status.phase}&nbsp;</span></td>
							</c:otherwise>
						</c:choose>
						<td>${pod.status.startTime}&nbsp;</td>
					</tr>
				</c:forEach>
				</tbody>
			</table>            
          </div>
        </div>